package com.test.service.impl;

import com.test.mapper.WordMapper;
import com.test.model.pojo.Word;
import com.test.service.WordService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@Slf4j
public class WordServiceImpl implements WordService {
    @Autowired
    WordMapper wordMapper;


    @Override
    public List<Word> getAllWord() {
        List<Word> words = wordMapper.getAllWord();
        return words;
    }
}
